import request from '@/utils/request'

export default {
	getStates: (data, isLoading = true) => { // 获取订单状态数据
		return request({
			url: '/system/wuyeinfo/mall/order/getStates',
			method: 'post',
			params: data,
			loading: isLoading,
		})
	},
	query: (data, isLoading = true) => { // 订单列表
		return request({
			url: '/system/wuyeinfo/mall/order/query',
			method: 'post',
			params: data,
			loading: isLoading,
		})
	},
	getOrderDetail: (data, isLoading = true) => { // 订单详情
		return request({
			url: '/system/wuyeinfo/mall/order/getOrderDetail',
			method: 'post',
			params: data,
			loading: isLoading,
		})
	},
	orderExpress: (data, isLoading = true) => { // 获取物流信息
		return request({
			url: '/system/wuyeinfo/mall/order/orderExpress',
			method: 'post',
			params: data,
			loading: isLoading,
		})
	},
	outExcel: (data, isLoading = true) => { // 订单导出
		return request({
			url: '/system/wuyeinfo/mall/order/outExcel',
			method: 'post',
			params: data,
			loading: isLoading,
			responseType: 'blob'
		})
	},
	refundQuery: (data, isLoading = true) => { // 退款订单
		return request({
			url: '/system/wuyeinfo/mall/order/refundQuery',
			method: 'post',
			params: data,
			loading: isLoading,
		})
	},
	getOrderRefundDetail: (data, isLoading = true) => { // 退款订单详情
		return request({
			url: '/system/wuyeinfo/mall/order/getOrderRefundDetail',
			method: 'post',
			params: data,
			loading: isLoading,
		})
	},
	loadXiaoQuList: (data, isLoading = true) => { //小区筛选
		return request({
			url: '/system/xiaoqu/loadXiaoQuList ',
			method: 'post',
			params: data,
			loading: isLoading,
		})
	},

}
